package scantask.containers.operationStanzas;

import scantask.server.domainLayer.ControllerInterface;

public class LogoutStanza extends Stanza {
	
	private String _userName;
	
	public LogoutStanza(String userName) {
		this._userName = userName;
	}

	@Override
	public String perform(ControllerInterface controller) {
		controller.logout(this._userName);
		scantask.server.utilities.logging.SingletonLogger.getLogger().warning("Sending ACK to " + this._userName + " about logout request");
		return "ACK";
	}
	
	

}
